package com.szty.libarytest.service

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.szty.libarytest.other.LongConnectActivity
import com.szty.libarytest.R
import com.szty.libarytest.longConnect.manager.SendPointService
import kotlinx.android.synthetic.main.activity_service_test.*

class ServiceTestActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_service_test)
        btn_start_connect_page.setOnClickListener {
            startActivity(Intent(this, LongConnectActivity::class.java))
        }
        btn_start_service.setOnClickListener {
            startService(Intent(this,SendPointService::class.java))
        }
    }
}